home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 5773 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  2.0 KB

  1. Path: erich.triumf.ca!bennett
  2. From: bennett@erich.triumf.ca (P.Bennett)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Newbie needs Microsoft libs
  5. Date: 20 Feb 1996 22:15 PST
  6. Organization: TRIUMF: Tri-University Meson Facility
  7. Distribution: world
  8. Message-ID: <20FEB199622155233@erich.triumf.ca>
  9. References: <4gdevd$i2u@cloner3.netcom.com>
  10. NNTP-Posting-Host: erich.triumf.ca
  11. News-Software: VAX/VMS VNEWS 1.50    
  12.  
  13. In article <4gdevd$i2u@cloner3.netcom.com>, mitchb2@ix.netcom.com (Mitch Brink) writes...
  14. >I am currently learning C from ground zero :  printf("Hello World");
  15. >To help me enjoy it more, I picked up a book called "Game Programming
  16. >in 21 Days."  I also purchased Turbo C++.
  17. >The author says in the introduction that HE uses Microsoft C, but it's
  18. >not required.  However, when I try to compile his examples, I get
  19. >"file not found" when it tries to access some of the .h files.
  20.  
  21. The first question is: what header files does TurboC not find?  I think the
  22. only header that MS uses that TC doesn't is graph.h - TC's graphics stuff is in
  23. <graphics.h>.  MS and Borland use the same names for the DOS specific headers,
  24. although some of the function names are different.
  25.  
  26. In any case, header files for commercial compilers are copyright by the vendor,
  27. and usually (even for the "standard" headers) contain compiler-specific stuff,
  28. so Microsoft's standard headers may not work with a Borland compiler.
  29.  
  30. The non-standard headers are definitely non-interchangeable.
  31.  
  32. A header file alone is of no use - you need the matching library.  A header
  33. is just a text file containing function prototypes and the associated typedefs
  34. and #defines.  The actual functions are in a library.
  35.  
  36.  
  37. Peter Bennett VE7CEI                | Vessels shall be deemed to be in sight
  38. Internet: bennett@triumf.ca         | of one another only when one can be
  39. Packet: ve7cei@ve7kit.#vanc.bc.ca   | observed visually from the other
  40. TRIUMF, Vancouver, B.C., Canada     |                          ColRegs 3(k)
  41. GPS and NMEA info and programs: ftp://sundae.triumf.ca/pub/peter/index.html
  42.  
  43.